package cn.itcast.elastic.repository;

import cn.itcast.elastic.pojo.Goods;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @author 虎哥
 */
public interface GoodsRepository extends ElasticsearchRepository<Goods, Long> {

    List<Goods> findByPriceBetween(Double begin, Double end);

}
